package com.frejoys.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

// 订单商品表
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("j_order_goods")
public class OrderGoods  implements Serializable {

    private static final long serialVersionUID = 1L;

    // 订单商品表主键
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    // 订单编号
    private Long orderSn;

    // 商品id
    private Integer goodsId;

    // 数量
    private Integer num;

    // 单价，现价
    private BigDecimal price;

    // 总价
    private BigDecimal priceTotal;

    // 商品状态：0无效，1有效
    private Integer status;

}
